modelit.layout.Title

Extends: modelit.layout.AbstractPainter & hgsetget & handle

A title for a modelit.layout.Frame 

Properties

backgroundcolor

  The background color of the title.
  1-by-3 matrix of RGB values, default value is system dependent

fontangle

  Setting this property to italic selects a slanted version of the font, when it is available on your system.
  {normal} | italic

fontname

  The name of the font.
  To display and print properly, this must be a font that your system supports.
  Use listfonts to list all available system fontnames.
  String, default is system dependent.

fontsize

  A number specifying the size in pixels of the font.
  Integer, default value is system dependent.

fontweight

  Setting this property to bold selects a bold version of the font, when it is available on your system.
  {normal} | bold

string

  The string to be displayed.
  String, default value: ''

visible

  Determines if the painter is visible.
  Boolean: Default value: true

Help for modelit.layout.Title/visible is inherited from superclass MODELIT.LAYOUT.ABSTRACTPAINTER

Methods

Title

Modelit.layout.Title constructor


CALL:

   obj = modelit.layout.Title(varargin)
 

INPUT:

   varargin:
    parameter-value pairs, see the component properties for a
    description of the parameters and their values

delete

Modelit.layout.Title destructor


CALL:

   delete(obj)
 

INPUT:

   obj:
     modelit.layout.Title destructor

paint

Paint the title


CALL:

   paint(obj, hax, rect, cliprect)
 

INPUT:

   obj:
     modelit.layout.Title
   hax:
     handle of axis in which to paint
   rect:
     rectangle [left bottom width heigth] with painting area
   cliprect:
     rectangle [left bottom width heigth] with clipping area
 

OUTPUT:

   No direct output

getInsets

Get the insets needed to paint this title


CALL:

   getInsets(obj)
 

INPUT:

   obj:
    modelit.layout.Title
 

OUTPUT:

   value:
     [1x4] array with insets (in pixels)

isPainterChanged

Returns if one or more properties have been changed and the painter needs to be reinitialized


CALL:

   value = isPainterChanged(obj)
 

INPUT:

   obj:
     modelit.ui.AbstractPainter
 

OUTPUT:

   value:
     boolean, true if one or more properties have been changed and the painter needs to be reinitialized

Help for modelit.layout.Title/isPainterChanged is inherited from superclass MODELIT.LAYOUT.ABSTRACTPAINTER

setPainterChanged

Set to true to indicate that one or more properties have been changed and the painter needs to be reinitialized


CALL:

   obj = modelit.ui.AbstractPainter(varargin)
 

INPUT:

    obj:
      modelit.ui.AbstractPainter
   value:
     boolean, true if one or more properties have been changed and the painter needs to be reinitialized
 

OUTPUT:

   No output

Help for modelit.layout.Title/setPainterChanged is inherited from superclass MODELIT.LAYOUT.ABSTRACTPAINTER